package com.iflytek.jcy.supervise.clue.component.runner;

import com.iflytek.jcy.supervise.clue.service.ISysDictTypeService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

/****
* @description  初始化 system 模块对应业务数据
* @author  dgyu
* @date    2023/1/14 21:54
*/
@Slf4j
@RequiredArgsConstructor
@Component
public class SystemApplicationRunner implements ApplicationRunner {

    private final ISysDictTypeService dictTypeService;
    @Override
    public void run(ApplicationArguments args) throws Exception {
        dictTypeService.loadingDictCache();
        log.info("加载字典缓存数据成功");
    }

}
